<template>
  <div class="page">
    <h2>用户 ID: {{ id }}</h2>
    <p>这是动态路由示例。</p>
  </div>
</template>

<script setup lang="ts">
import { useRoute } from 'vue-router'
const route = useRoute()
const id = route.params.id
</script>
